package 类和对象课堂练习.封装;

public class Zuoye032921 extends Zuoye03292 {
    int jiage;
    public Zuoye032921(String name, String clor, String chepai,int jiage) {
        super(name, clor, chepai);
        this.jiage=jiage;
    }
    public void print(){
        System.out.println("这是一辆"+name+"车");
        System.out.println("这辆车要"+jiage+"万");
        super.print();
    }
}
